package org.jsbd.boss.service;


import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.domian.CabinetConfigBean;

public interface ICabinetConfigService {

	public void saveCabinetConfig(CabinetConfigBean CabinetConfig);

	public void updateCabinetConfig(CabinetConfigBean CabinetConfig);

	public CabinetConfigBean getCabinetConfig(CabinetConfigBean cabinetConfig);

	public List<CabinetConfigBean> getCabinetConfigList(CabinetConfigBean cabinetConfig);

	public Integer getCabinetConfigCount(CabinetConfigBean cabinetConfig);

	public Map<String, Object> getCabinetConfigListPage(DataGridModel page, CabinetConfigBean cabinetConfig);

	public void deleteCabinetConfig(CabinetConfigBean cabinetConfig);
	
	/**
	 * 
	 * 校验保存时是否唯一性
	 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
	 * @param cabinetConfig
	 * @return
	 */
	public boolean validateSaveCabinetConfig(CabinetConfigBean cabinetConfig);
	
	/**
	 * 
	 * 校验更新时是否唯一性
	 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
	 * @param cabinetConfig
	 * @return
	 */
	public boolean validateUpdateCabinetConfig(CabinetConfigBean cabinetConfig);
	
	/**
	 * 
	 * 获取机柜与ip段的对应关系
	 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
	 * @return
	 */
	Map<String,String> getCabinetConfigAllMap();
	
}
